package org.pan.domain.db.admin;

import org.pan.domain.DomainObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

/**
 * 用户扩展信息
 * Created by fangjinliu on 2015/10/29 0029.
 */
@Entity
public class SystemAccountBasicInfo extends DomainObject{

    private static final long serialVersionUID = 3720697997642273415L;

    @Column
    private String nickName;
    @Column
    private String telPhone;
    @Column
    private String email;

    @OneToOne(optional = false)
    @JoinColumn(name = "systemAccount_id",referencedColumnName = "id")
    private SystemAccount systemAccount;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public SystemAccount getSystemAccount() {
        return systemAccount;
    }

    public void setSystemAccount(SystemAccount systemAccount) {
        this.systemAccount = systemAccount;
    }
}
